home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
00
/
5
/
DISK0059.ZIP
/
PRINT.DOC
< prev
next >
Wrap
Text File
|
1983-08-04
|
8KB
|
144 lines
`P`P`P`T`EPEPSON `t`eand`E`T PSCREEN
`t`e
`L`L`Sby Bill Richards, Dept. of Communication SFU 291-4119 or -3687
`s`L`L`PThis is a
text formatting program. It allows you to enter
text more or less free form, with formatting commands interspersed
with the text. It will adjust the lines of text (align) to any
length you specify (under 71), it will center lines, it will
accept pre-formatted text (i.e. text that is to be printed without aligning),
and it allows you to change the fonts
in the middle of a line.
`L`E`L`PAll formatting commands`e are of the format "^?",
where the "^" is replaced by a character you use to tell the program
that the next character is a control command, and where the "?"
is replaced by one of the following control characters:
`L`E`T`L`PD d E e I i S s T t U u C L P * ! ? 0 1 2 3 4 5 6
`L`L`e`t`P`EThere are two general classes of commands.`e The first controls
the `Efonts.`e These are the commands with "D, E, I, S, T, U, and @".
These commands only change the font you are printing with, and do not
alter the spacing or location of characters.
`L`L`PThe second class includes
what might be called `Ecarriage control`e commands. These are the
"C, L, N, P, *, !, ?, and 0 - 6" commands.
`L`L`PFor font commands, the upper-case letters turn special fonts on,
while the lower-case ones turn them off. "^@" turns all special
fonts off.
`L`L`P "^!" and "^?" go to the top of the next page unconditionally
and conditionally. The numbers (0, 1, 2, 3, 4, 5, or 6) tell the
program how far to indent all lines printed until the next indent
command is received.
"^0" means no indentation, "^1" means indent 5 spaces, "^2" means indent
10 spaces, etc.
`L`L`P"^*" turns alignment and indenting off until the next "^*".
`L`L`P"^C" centers the line.
`L`L`P "^N" turns on eight lines per inch spacing.
`L`L`P"^P" starts a new paragraph, and "^L"
starts a new line. Note that to skip a line, you must say "^L^L", rather
than just "^L".
`L`L`P Centered lines begin on a new line. Control sequences cannot
be used in the middle of lines that are centered with the "^C" command.
That is because a control sequence ends the centered line and begins
a new line, no matter what it is. (Sorry, I had a lot of trouble with
this and finally accepted it as it is.) A "^L" after some centered
text causes a line to be skipped after the centered part is printed.
If you do not want to skip any space after a centered line, don't
begin the next line with a "^L"; just start it on the next line of
the input file.
`L`L`PWhen you tell the program to indent text, it does it by putting
a number of blank spaces at the
beginning of each line as it is printed. This cuts into the line
length, so your text takes more space on the page if it is indented.
New paragraphs that are also indented are "double indented" -- that
is, the paragraph indentation takes place after the other indentation.
Centering and ^* take precedence over indenting.
`L`L`PThere are two kinds of page numbers. The first is plain, where
the number looks like this:`L
`E`T`L`C- 4-
`t`e`L The second is with section letters and numbers, like this:
`L`L`E`T`CA-3 A-4 B-1 B-2 B-3 C-1 etc.
`e`t`LTo chose the one you want, you just answer the question at the beginning
of the program when you run it. With letters, the program starts
at the letter you specify. To start at "A", you tell it "1". To
start at "B", you tell it "2", etc.
`L`L`PIf you are using "^*" and you give it a line that is too long,
the program pauses when it is printing and asks you to tell it whether or not
to continue. Actually, if you type anything other than CTL-BREAK
the program wil continue. Only part of the offending line is printed.
`L`L`PIf you want to use the printer to make copies on bond paper, ditto
stencils, or gestetner stencils, there is no problem, since the program
pauses at the top of each new page and waits for you to tell it that you
are ready. It will ask "Ready?" If you give it a carriage return, it
won't ask anymore (on successive pages). If you give it any character
and then a carriage return, it will continue to pause for each new page.
`L`L`L`PThere are two versions of the program: `EPEPSON`e and `EPSCREEN.`e
PEPSON is for printing on the Epson MX-80. PSCREEN displays the
formatted text on the screen. The major difference between the two is
that PSCREEN does not execute the font commands. ALl the spacing is
the same (except for Double and Squashed), but the font commands are
ignored. With PEPSON, escape sequences are sent for the font commands.
`L`L`EMiscellaneous notes
`L`L`P1. "^L" always begins a new line. "^P" causes five spaces to be
printed. If "^P" comes at the beginning of a line, that line is indented.
If it comes in the middle of a line, that line is ended, a new line is
started, and it is indented. So, to start a new paragraph on the next
line, you can use just "^P" or "^L^P". They have the same effect. To skip a
line between paragraphs, you need "^L^L^P" ('end of the current line', 'end
of the next line', and 'indent the new line').
`L`L`P2. The "^S" and "^D" commands work, but there is a problem:
PSCREEN, since it can't show different widths, can't show correct line
lengths when you use squashed letters. Be careful here...
`L`L`P3. PEPSON and PSCREEN have a default format option. When you begin
either program, the first thing it says is "set printer to top of page. Ready?"
It pauses for a response from you. Anything other than a lowercase "s" followed
by a carriage return puts you into prompt mode. A lowercase "s" and carriage
return gives you the "Standard" form, which is 6 lines per inch, 11 inch
page, 66 lines per page, start printing on line 6, stop on line 59, page
number on line 63, one inch left margin, 68 character lines. PEPSON allows
you the option of choosing the number of lines per inch. If you choose some
number, say 4, remember that 11 inch paper will give you 44 line pages.
Adjust your margins (first line of printing and last line of printing)
accordingly.
`L`L`P4. When you are using "^*", two things cause a new line: 1) any
use of the "^L" command; and 2) a new line in your input file. Study the
page with the control sequences (the one before this one) and the file
that created this page (at the end of this section of notes) to see how
"^*" works.
`!`L`CDemo
`L`LThis is a short `IDEMONSTRATION`i of the
formatting capabilities of this program. `L`PAs
you can see, a number of options have been used, including:
`Ccentering,`L`Eemphasized`e `Ssquashed`s `Ddouble wide`d
`Uunderlining`u `D`I`T`Sdouble italic two-strike-squashed`@`1
and indented text. The next parts are indented further
`2 than the preceeding parts, and the next parts`3 even further.
`0but here is no indenting at all. Following is a little
table to show the use of the * command:
`*
TABLE
|------------|-----------|
| yes | no |
|------------|-----------|
| 72% | 28% |
|------------|-----------|
^*^!^LDemo"^L"
^L^LThis is a short ^IDEMONSTRATION^i of the
formatting capabilities of this program. ^L^PAs
you can see, a number of options have been used, including:
^Ccentering,^L^Eemphasized^e ^Ssquashed^s ^Ddouble wide^d
^Uunderlining^u ^D^I^T^Sdouble italic two-strike-squashed^@^1
and indented text. The next parts are indented further
^2 than the preceeding parts, and the next parts^3 even further.
^0but here is no indenting at all. Following is a little
table to show the use of the * command:
^*
TABLE
|------------|-----------|
| yes | no |
|------------|-----------|
| 72% | 28% |
|------------|-----------|
^*